﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="EasyLoader,com.ourbrander.loader.EasyLoader,FREE,LOADING_COMPLETED,LOADING_CONFIG_INITED,LOADING_ERROR,LOADING_INITING,LOADING_ITEM_STATUS_FAULT,LOADING_METHOD_BYTES,LOADING_METHOD_TEXT,LOADING_METHOD_VARIABLES,LOADING_METHOD_XML,LOADING_PAUSE,LOADING_PROGRESS,VERSION,autoLoad,bytesLoaded,bytesTotal,currentLoadingObj,ignoreError,index,length,addFile,addType,dispose,disposeFileByAlias,disposeFileByName,getFileByAlias,getFileByIndex,getFileByName,init,loadConfig,pause,removeFileByAlias,removeFileByName,start,unPause" name="keywords">
<title>com.ourbrander.loader.EasyLoader</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'EasyLoader - API Documentation';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">EasyLoader</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?com/ourbrander/loader/EasyLoader.html&amp;com/ourbrander/loader/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;EasyLoader</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#constantSummary">Constants</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class EasyLoader"); titleBar_setSubNav(true,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.ourbrander.loader</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class EasyLoader</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">EasyLoader <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
</tr>
</table>
<p></p>
<p>非常高兴easyLoader 这个项目终于发布了。现在的最新版本是1.012;它可以用来干不少事情，比如说加载声音、视频、XML、TXT文本、DAE的模型，玩家还可以自己定义要加载的文件类型。<br>
  * 比如你有个新的文件类型，或想将要Load进来的FLASH改成其他的名字比如说:myswf.cc等.<br>
  * 希望大家可以喜欢。<br>
  * 作者：刘毅。<br>
  * 项目在Google code上的地址:<a href="http://code.google.com/p/easyloader/" target="_blank">http://code.google.com/p/easyloader/</a> <br>
  * EasyLoader的家在：<a href="http://www.ourbrander.com/easyLoader">http://www.ourbrander.com/easyLoader</a>
</p>
<p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td>
<td class="summaryTableSignatureCol"><a class="signatureLink" href="#autoLoad">autoLoad</a> : Boolean  <div class="summaryTableDescription">是否允许在载入完成需要加载的文件清单XML文件后，自动开始加载资源。默认为true。</div></td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td>
<td class="summaryTableSignatureCol"><a class="signatureLink" href="#bytesLoaded">bytesLoaded</a> : Number 
  <div class="summaryTableDescription">[read-only] 配置文件xml已经被加载的字节数</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#bytesTotal">bytesTotal</a> : Number<div class="summaryTableDescription">[read-only]配置文件 xml 总共的字节数</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#currentLoadingObj">currentLoadingObj</a> : Object<div class="summaryTableDescription">[read-only] 这个是用来存储当前正在被加载的文件的相关信息，比如文件名、别名、索引、当前已经加载的字节数、整个文件的字节数。详细的会在下面写出。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#ignoreError">ignoreError</a> : Boolean<div class="summaryTableDescription">是否允许忽略错误，默认为true。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#index">index</a> : uint<div class="summaryTableDescription">[read-only]当前正在下载的文件的索引，以0开始计数。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
  <td class="summaryTablePaddingCol">&nbsp;</td>
  <td class="summaryTableInheritanceCol">&nbsp;</td>
  <td class="summaryTableSignatureCol"><a class="signatureLink" href="#length">length</a> : uint
    <div class="summaryTableDescription">[read-only]整个加载完成的文件数量。</div></td>
  <td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td>
<td class="summaryTableSignatureCol"><a class="signatureLink" href="#loadStatus">loadStatus</a>: String
  <div class="summaryTableDescription">[read-only]easyLoader实例所处的状态</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#EasyLoader()">EasyLoader</a>()</div>
<div class="summaryTableDescription">EasyLoader的构造函数，要使用EasyLoader第一个就是new EasyLoader()了。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addFile()">addFile</a>(path:String, alias:String = "", loadTip:String = "", autoRemove:Boolean = false, method:String = "text"):void</div>
<div class="summaryTableDescription"><br/>增加需要被加载的文件。<br/>path是要被加载的文件的路径；<br/>loadTip是针对该文件的备注类型的信息，一般情况下默认就好了；<br/>autoRemove:这个是是否允许在加载完成后立即将其删除，很有用的！默认为不删除，会另外写这个属性为true的时候的用法。<br/>method:这个是加载的文件被加载的方式，一般情况下不需要更改。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addType()">addType</a>($type:String, $name:String):Boolean</div>
<div class="summaryTableDescription"><br/>增加自定义的加载文件类型。$type的值为以下几个："image","sound","video","text","bytes";$name:这个就是自定义的文件类型了，随便什么样的都行,例如addType("video",".hlv")</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#dispose()">dispose</a>():void</div>
<div class="summaryTableDescription">摧毁实例化出来的EasyLoader对象，减少占用的内存的垃圾。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#disposeFileByAlias()">disposeFileByAlias</a>(alias:String):Boolean</div>
<div class="summaryTableDescription">根据别名来摧毁指定不需要的LoadedItem,减少占用内存的垃圾。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#disposeFileByName()">disposeFileByName</a>(name:String):Boolean</div>
<div class="summaryTableDescription">根据文件名来摧毁指定不需要的LoadedItem,减少占用内存的垃圾。注意是文件名而不必包括文件的路径，如果有相同的文件会清除第一个。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getFileByAlias()">getFileByAlias</a>(alias:String):<a href="../loader/LoadedItem.html">LoadedItem</a>
</div>
<div class="summaryTableDescription">根据别名获取加载的文件对象，得到的是一个LoadedItem。LoadedItem.content即为加载进来的文件（视频、图片、动画、声音等）</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getFileByIndex()">getFileByIndex</a>(number:uint):<a href="../loader/LoadedItem.html">LoadedItem</a>
</div>
<div class="summaryTableDescription">根据索引获取加载的文件对象，得到的是一个LoadedItem。LoadedItem.content即为加载进来的文件（视频、图片、动画、声音等）</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getFileByName()">getFileByName</a>(name:String):<a href="../loader/LoadedItem.html">LoadedItem</a>
</div>
<div class="summaryTableDescription">根据文件名获取加载的文件对象，得到的是一个LoadedItem。LoadedItem.content即为加载进来的文件（视频、图片、动画、声音等）</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#init()">init</a>(obj:* = null, $autoLoad:Boolean = true, $ignoreError:Boolean = true):Boolean</div>
<div class="summaryTableDescription"><br/>可以用这个初始化EasyLoader对象，但不是必须的，可以用addFile()和loadConfig()代替。<br/>
  obj：可以是XML文件，也可以是XML文件的路径，方法会自动进行判断。$autoLoad如果设置为true则当配置文件初始化完成后立即开始下载；$ignoreError如果设置为true则忽略下载错误，如果中途遇到错误会继续下载下一个，而且会生成一个空的LoadedItem占据下载失败的文件的位置。在全部下载完成后可以尝试下载下载失败的文件（这个功能没有加入，就实际情况来看，如果没下载成功多半是路径出错或失效了，所以重试的话也是白试。）</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#loadConfig()">loadConfig</a>(str:String):void</div>
<div class="summaryTableDescription">加载配置文件XML的方法，str是配置文件XML的路径。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#pause()">pause</a>():void</div>
<div class="summaryTableDescription">暂停EasyLoader的加载行为。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#removeFileByAlias()">removeFileByAlias</a>(alias:String):Boolean</div>
<div class="summaryTableDescription">这个和disposeFileByAlias不同，是根据别名来移除加载清单上的指定的文件，使其不再被加载，也不再存在于清单上。注意：在该文件还没有被加载完成之前使用有效。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#removeFileByName()">removeFileByName</a>(name:String):Boolean</div>
<div class="summaryTableDescription">这个和disposeFileByName不同，是根据别名来移除加载清单上的指定的文件，使其不再被加载，也不再存在于清单上。注意：在该文件还没有被加载完成之前使用有效。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#start()">start</a>():void</div>
<div class="summaryTableDescription">开始加载文件</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#unPause()">unPause</a>():void</div>
<div class="summaryTableDescription">恢复被暂停的加载行为，继续加载。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
</table>
</div>
<a name="constantSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Constants</div>
<table id="summaryTableConstant" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#FREE">FREE</a> : String = "free"<div class="summaryTableDescription">[static]easyLoader对象所处的状态之一，这个状态显示该对象还处于自由状态，还没有开始初始化加载列表。可以通过easyLoader.loadStatus或取当前状态(1.012版以上,包括1.012版)</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#LOADING_COMPLETED">LOADING_COMPLETED</a> : String = "loading_completed"<div class="summaryTableDescription">[static]easyLoader对象所处的状态之一，这个状态显示该对象已经将加载清单内的文件全部加载完成了。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#LOADING_CONFIG_INITED">LOADING_CONFIG_INITED</a> : String = "loading_config_inited"<div class="summaryTableDescription">[static]easyLoader对象所处的状态之一，这个状态显示该对象已经完成了XML配置文件初始化的行为。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#LOADING_ERROR">LOADING_ERROR</a> : String = "loading_error"<div class="summaryTableDescription">[static]easyLoader对象所处的状态之一，这个状态显示该对象发生了加载文件失败的错误，但如果选择了ignoreError则在其他文件全部加载完成后状态更新为LOADING_COMPLETED</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#LOADING_INITING">LOADING_INITING</a> : String = "loading_initing"<div class="summaryTableDescription">[static]easyLoader对象所处的状态之一，这个状态显示该对象正在加载XML配置文件。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#LOADING_ITEM_STATUS_FAULT">LOADING_ITEM_STATUS_FAULT</a> : String = "Loading_item_Status_Fault"<div class="summaryTableDescription">加载失败的文件的一个状态属性</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#LOADING_METHOD_BYTES">LOADING_METHOD_BYTES</a> : String = "bytes"<div class="summaryTableDescription">[static]指定文件以bytes方式加载的常量</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#LOADING_METHOD_TEXT">LOADING_METHOD_TEXT</a> : String = "text"<div class="summaryTableDescription">[static]指定文件以text方式加载的常量</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#LOADING_METHOD_VARIABLES">LOADING_METHOD_VARIABLES</a> : String = "variables"<div class="summaryTableDescription">[static]指定文件以variables方式加载的常量</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#LOADING_METHOD_XML">LOADING_METHOD_XML</a> : String = "xml"<div class="summaryTableDescription">[static]指定文件以XML方式加载的常量</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#LOADING_PAUSE">LOADING_PAUSE</a> : String = "loading_pause"<div class="summaryTableDescription">[static]easyLoader对象所处的状态之一，这个状态显示该对象处于暂停加载的状态。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#LOADING_PROGRESS">LOADING_PROGRESS</a> : String = "loading_progress"<div class="summaryTableDescription">[static]easyLoader对象所处的状态之一，这个状态显示该对象正在加载清单上的文件。</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td>
<td class="summaryTableSignatureCol"><a class="signatureLink" href="#VERSION">VERSION</a> : String = "1.012"
  <div class="summaryTableDescription">[static]版本信息</div>
</td><td class="summaryTableOwnerCol">EasyLoader</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="autoLoad"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">autoLoad</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>autoLoad:Boolean</code>&nbsp;&nbsp;[read-write]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get autoLoad():Boolean</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set autoLoad(value:Boolean):void</code>
<br>
是否允许在载入完成需要加载的文件清单XML文件后，自动开始加载资源。默认为true。
</div>
<a name="bytesLoaded"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">bytesLoaded</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>bytesLoaded:Number</code>&nbsp;&nbsp;[read-only]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get bytesLoaded():Number</code>
<br>配置文件xml已经被加载的字节数
</div>
<a name="bytesTotal"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">bytesTotal</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>bytesTotal:Number</code>&nbsp;&nbsp;[read-only]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get bytesTotal():Number</code>
<br>配置文件xml 总共的字节数
</div>
<a name="currentLoadingObj"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">currentLoadingObj</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>currentLoadingObj:Object</code>&nbsp;&nbsp;[read-only]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get currentLoadingObj():Object</code>
<br>这个是用来存储当前正在被加载的文件的相关信息，比如文件名、别名、索引、当前已经加载的字节数、整个文件的字节数。
有如下属性：fileName,正在加载的文件的文件名；id，正在加载的文件的索引；bytesTotal，,正在加载的文件的整个大小字节数；bytesLoaded，,正在加载的文件已经被加载的字节数；alias,正在加载的文件的别名；autoRemove,正在加载的文件的属性，是否在加载完后被清除；loadTip,正在加载的文件的备注信息。比如说可以用在LOADING提示上。。大家自己发挥创意吧！
</div>
<a name="ignoreError"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ignoreError</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>ignoreError:Boolean</code>&nbsp;&nbsp;[read-write]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get ignoreError():Boolean</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set ignoreError(value:Boolean):void</code>
<br>
是否允许忽略错误，默认为true。如果设置为true，<span class="summaryTableDescription">如果中途遇到错误会继续下载下一个，而且会生成一个空的LoadedItem占据下载失败的文件的位置。在全部下载完成后可以尝试下载下载失败的文件（这个功能没有加入，就实际情况来看，如果没下载成功多半是路径出错或失效了，所以重试的话也是白试。）</span>设置为false的话，将会停止加载剩下的文件，让用户自己选择如何处理。</div>
<a name="index"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">index</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>index:uint</code>&nbsp;&nbsp;[read-only]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get index():uint</code>
<br>当前正在下载的文件的索引，以0开始计数。
</div>
<a name="length"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">length</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>length:uint</code>&nbsp;&nbsp;[read-only]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get length():uint</code>
<br>整个加载完成的文件数量。
</div>
<a name="constructorDetail"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
  <tr>
    <td class="detailHeaderName">loadStatus</td>
    <td class="detailHeaderType">String</td>
    <td class="detailHeaderRule">&nbsp;</td>
  </tr>
</table>

<div class="detailBody"> <code>public function get loadStatus():String 显示easyLoader实例所处的状态。</code><span class="summaryTableDescription"></span></div><a name="loadStatus"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="EasyLoader()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">EasyLoader</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function EasyLoader()</code>
<br/>EasyLoader的构造函数，要使用EasyLoader第一个就是new EasyLoader()了。
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="addFile()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addFile</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function addFile(path:String, alias:String = "", loadTip:String = "", autoRemove:Boolean = false, method:String = "text"):void</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">path</span>:String</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">alias</span>:String</code> (default = "<code></code>")<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">loadTip</span>:String</code> (default = "<code></code>")<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">autoRemove</span>:Boolean</code> (default = <code>false</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">method</span>:String</code> (default = "<code>text</code>")<code></code><br/>
增加需要被加载的文件。
path是要被加载的文件的路径；
loadTip是针对该文件的备注类型的信息，一般情况下默认就好了；
autoRemove:这个是是否允许在加载完成后立即将其删除，很有用的！默认为不删除，会另外写这个属性为true的时候的用法。
method:这个是加载的文件被加载的方式，一般情况下不需要更改。
例子:<br/>
<code>
var _assetsManager=new EasyLoader()<br/>
_assetsManager.addFile("assets/images/d8.png", "myImg")

</code>
</td>
</tr>
</table>
</div>
<a name="addType()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addType</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function addType($type:String, $name:String):Boolean</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">$type</span>:String</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">$name</span>:String</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code><br/>
增加自定义的加载文件类型。$type的值为以下几个："image","sound","video","text","bytes";$name:这个就是自定义的文件类型了，随便什么样的都行,例如addType("video",".hlv")
<br/><br/>
<code>_assetsManager.addType("text",".ctp")</code><br/>
<code>_assetsManager.addFile("html/template/index.ctp","index")</code><br/>
<code>_assetsManager.start()</code></td>
</tr>
</table>
</div>
<a name="dispose()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">dispose</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function dispose():void</code>
<br/>
摧毁实例化出来的EasyLoader对象，减少占用的内存的垃圾。
这个一般用在要将当前对象完全移除的时候，比如说有一个load.swf加载了main.swf，main.swf 用了EasyLoader来做资源管理；当需要卸载掉main.swf的时候，需要将其内部的一些对象和事件销毁掉，以便于FLASH可以及时有效的清理内存。这个时候可以在main的被移除场景的事件侦听函数里加入使用这个方法，并将EasyLoader设置为null.
<br/>
main.as<br/>
<code>addEventListener(Event.REMOVED_FROM_STAGE,removedFromStage)</code><br/>
<code>private function removedFromStage(e:Event){</code><br/>
<code>_assetsManager.dispose()</code><br/>
<code>_assetsManager=null</code><br/>
<code>//其他代码。。。</code><br/>
<code>}</code><br/>
</div>
<a name="disposeFileByAlias()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">disposeFileByAlias</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function disposeFileByAlias(alias:String):Boolean</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">alias</span>:String</code>

</td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code><br/>
根据别名来摧毁指定不需要的LoadedItem,减少占用内存的垃圾。某一些文件可能不会重复使用或者只使用到一定次数就不再需要了，那么就可以通过这个方法来将其完全摧毁。
</td>
</tr>
</table>
</div>
<a name="disposeFileByName()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">disposeFileByName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function disposeFileByName(name:String):Boolean</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code><br/>
根据文件名来摧毁指定不需要的LoadedItem,减少占用内存的垃圾。某一些文件可能不会重复使用或者只使用到一定次数就不再需要了，那么就可以通过这个方法来将其完全摧毁。</td>
</tr>
</table>
</div>
<a name="getFileByAlias()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getFileByAlias</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getFileByAlias(alias:String):<a href="../loader/LoadedItem.html">LoadedItem</a></code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">alias</span>:String</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><p><code><a href="../loader/LoadedItem.html">LoadedItem</a></code><br/>
  根据别名获取加载的文件对象，得到的是一个LoadedItem。LoadedItem.content即为加载进来的文件（视频、图片、动画、声音等）</p>
  <p>如下：</p>
  <p>var video:Video = new Video()<br>
    var _netstream:NetStream=_assetsManager.getFileByAlias(&quot;ckfree&quot;).content<br>
    video.attachNetStream(_netstream)<br>
    video.y=bitmap.y+bitmap.height<br>
    _netstream.resume()<br>
    addChild(video)<br>
    <br>
    var mp3:Sound = _assetsManager.getFileByAlias(&quot;mymp3&quot;).content<br>
    var chanel:SoundChannel = mp3.play(0,9999999)<br/>
    <code></code></p></td>
</tr>
</table>
</div>
<a name="getFileByIndex()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getFileByIndex</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getFileByIndex(number:uint):<a href="../loader/LoadedItem.html">LoadedItem</a></code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">number</span>:uint</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../loader/LoadedItem.html">LoadedItem</a></code></td>
</tr>
</table>
<span class="summaryTableDescription">根据索引获取加载的文件对象，得到的是一个LoadedItem。LoadedItem.content即为加载进来的文件（视频、图片、动画、声音等）</span> </div>
<a name="getFileByName()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getFileByName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getFileByName(name:String):<a href="../loader/LoadedItem.html">LoadedItem</a></code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../loader/LoadedItem.html">LoadedItem</a></code></td>
</tr>
</table>
<span class="summaryTableDescription">根据文件名获取加载的文件对象，得到的是一个LoadedItem。LoadedItem.content即为加载进来的文件（视频、图片、动画、声音等）</span> </div>
<a name="init()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">init</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function init(obj:* = null, $autoLoad:Boolean = true, $ignoreError:Boolean = true):Boolean</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">obj</span>:*</code> (default = <code>null</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">$autoLoad</span>:Boolean</code> (default = <code>true</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">$ignoreError</span>:Boolean</code> (default = <code>true</code>)<code></code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code></td>
</tr>
</table>
<span class="summaryTableDescription">可以用这个初始化EasyLoader对象，但不是必须的，可以用addFile()和loadConfig()代替。<br/>
obj：可以是XML文件，也可以是XML文件的路径，方法会自动进行判断。$autoLoad如果设置为true则当配置文件初始化完成后立即开始下载；$ignoreError如果设置为true则忽略下载错误，如果中途遇到错误会继续下载下一个，而且会生成一个空的LoadedItem占据下载失败的文件的位置。在全部下载完成后可以尝试下载下载失败的文件（这个功能没有加入，就实际情况来看，如果没下载成功多半是路径出错或失效了，所以重试的话也是白试。）</span> </div>
<a name="loadConfig()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">loadConfig</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function loadConfig(str:String):void</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">str</span>:String</code></td>
</tr>
</table>
<span class="summaryTableDescription">加载配置文件XML的方法，str是配置文件XML的路径。</span> </div>
<a name="pause()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">pause</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function pause():void</code>
<span class="summaryTableDescription">暂停EasyLoader的加载行为。</span></div>
<a name="removeFileByAlias()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">removeFileByAlias</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function removeFileByAlias(alias:String):Boolean</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">alias</span>:String</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code></td>
</tr>
</table>
<span class="summaryTableDescription">这个和disposeFileByAlias不同，是根据别名来移除加载清单上的指定的文件，使其不再被加载，也不再存在于清单上。注意：在该文件还没有被加载完成之前使用有效。</span> </div>
<a name="removeFileByName()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">removeFileByName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function removeFileByName(name:String):Boolean</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code></td>
</tr>
</table>
<span class="summaryTableDescription">这个和disposeFileByName不同，是根据别名来移除加载清单上的指定的文件，使其不再被加载，也不再存在于清单上。注意：在该文件还没有被加载完成之前使用有效。</span> </div>
<a name="start()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">start</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function start():void</code>
<span class="summaryTableDescription">开始加载文件</span></div>
<a name="unPause()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">unPause</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function unPause():void</code>
<span class="summaryTableDescription">恢复被暂停的加载行为，继续加载。</span></div>
<a name="constantDetail"></a>
<div class="detailSectionHeader">Constant detail</div>
<a name="FREE"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">FREE</td><td class="detailHeaderType">constant</td>
</tr>
</table>
<div class="detailBody">
<code>public static const FREE:String = "free"</code>
easyLoader对象所处的状态之一，这个状态显示该对象还处于自由状态，还没有开始初始化加载列表。可以通过easyLoader.loadStatus或取当前状态(1.012版以上,包括1.012版)</div>
<a name="LOADING_COMPLETED"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">LOADING_COMPLETED</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const LOADING_COMPLETED:String = "loading_completed"</code>
<span class="summaryTableDescription">easyLoader对象所处的状态之一，这个状态显示该对象已经将加载清单内的文件全部加载完成了。</span></div>
<a name="LOADING_CONFIG_INITED"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">LOADING_CONFIG_INITED</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const LOADING_CONFIG_INITED:String = "loading_config_inited"</code>
<span class="summaryTableDescription">easyLoader对象所处的状态之一，这个状态显示该对象已经完成了XML配置文件初始化的行为。</span></div>
<a name="LOADING_ERROR"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">LOADING_ERROR</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const LOADING_ERROR:String = "loading_error"</code>
<span class="summaryTableDescription">easyLoader对象所处的状态之一，这个状态显示该对象发生了加载文件失败的错误，但如果选择了ignoreError则在其他文件全部加载完成后状态更新为LOADING_COMPLETED</span></div>
<a name="LOADING_INITING"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">LOADING_INITING</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const LOADING_INITING:String = "loading_initing"</code>
<span class="summaryTableDescription">easyLoader对象所处的状态之一，这个状态显示该对象正在加载XML配置文件。</span></div>
<a name="LOADING_ITEM_STATUS_FAULT"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">LOADING_ITEM_STATUS_FAULT</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public const LOADING_ITEM_STATUS_FAULT:String = "Loading_item_Status_Fault"</code>
<span class="summaryTableDescription">加载失败的文件的一个状态属性</span></div>
<a name="LOADING_METHOD_BYTES"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">LOADING_METHOD_BYTES</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const LOADING_METHOD_BYTES:String = "bytes"</code>
<span class="summaryTableDescription">指定文件以bytes方式加载的常量</span><br/>如果在添加需要被加载的文件到easyLoader对象时，指定加载方法为bytes，那么将会按照这样的方式被加载到FLASH里，获取得到的对象类型当然也会是bytes了。这个使用者可以根据自身需要使用。比如要加载一些FLASH本身无法解析的文件类型，然后自行解析的时候很有用。</div>
<a name="LOADING_METHOD_TEXT"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">LOADING_METHOD_TEXT</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const LOADING_METHOD_TEXT:String = "text"</code>
<span class="summaryTableDescription">指定文件以text方式加载的常量</span><br/>默认是这个，一般不需要特别指定，另外比如.swf、.jpg等这样明显不是文本文档的文件时候仍然会按照文件的真实类型去加载，这种情况下指定这个无效。</div>
<a name="LOADING_METHOD_VARIABLES"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">LOADING_METHOD_VARIABLES</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const LOADING_METHOD_VARIABLES:String = "variables"</code>
<span class="summaryTableDescription">指定文件以variables方式加载的常量，一般用在加载文本版文档的时候，会将文本文档的内容以变量的形式存储到对象。比如在一个user.txt的文本文件里写：username=liuyi&amp;sex=man&amp;home=shanghai<br/>那么最后得到的对象就包括了这些变量和值了。<br/><code>_assetsManager.getFileByName("user.txt").content.username</code><br/><code>_assetsManager.getFileByName("user.txt").content.home</code><br/><code>_assetsManager.getFileByName("user.txt").content.sex</code><br/></span></div>
<a name="LOADING_METHOD_XML"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">LOADING_METHOD_XML</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const LOADING_METHOD_XML:String = "xml"</code>
<span class="summaryTableDescription">指定文件以XML方式加载的常量</span><br/>将文档指定为XML方式加载，最后得到的对象会是XML类型的。顺便说明一下DAE模型默认是以XML方式加载的。</div>
<a name="LOADING_PAUSE"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">LOADING_PAUSE</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const LOADING_PAUSE:String = "loading_pause"</code>
<span class="summaryTableDescription">easyLoader对象所处的状态之一，这个状态显示该对象处于暂停加载的状态。</span></div>
<a name="LOADING_PROGRESS"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">LOADING_PROGRESS</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const LOADING_PROGRESS:String = "loading_progress"</code>
<span class="summaryTableDescription">easyLoader对象所处的状态之一，这个状态显示该对象正在加载清单上的文件。</span></div>
<a name="VERSION"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">VERSION</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const VERSION:String = "1.012"</code>
<span class="summaryTableDescription">版本信息</span></div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
